import Layout from "@/layout";

const agriculturalSocialRouter = [
  {
    path: "/agrSocial-system-config",
    component: Layout,
    redirect: "noRedirect",
    name: "agrSocialSystemConfig",
    meta: { title: "业务系统配置", icon: "system-settings" },
    children: [
      {
        path: "service-class-management",
        name: "serviceClassManagement",
        component: () => import("@/views/agricultural-social-manage/system-config/service-class-management/index"),
        meta: { title: "服务分类管理", icon: "agricultural-type-management" },
      },
      {
        path: "service-project-management",
        name: "serviceProjectManagement",
        component: () => import("@/views/agricultural-social-manage/system-config/service-project-management/index"),
        meta: { title: "服务项目管理", icon: "agricultural-type-management" },
      },
      {
        path: "account-config",
        name: "accountConfig",
        component: () => import("@/views/agricultural-social-manage/system-config/account-config/index"),
        meta: { title: "注册账号配置", icon: "agricultural-type-management" },
      },
      {
        path: "role-config",
        name: "roleConfig",
        component: () => import("@/views/agricultural-social-manage/system-config/role-config/index"),
        meta: { title: "角色初始化配置", icon: "agricultural-type-management" },
      },
    ]
  },
  {
    path: "/agrSocial-monitor",
    component: Layout,
    redirect: "noRedirect",
    name: "agrSocialMonitor",
    meta: { title: "监控中心", icon: "system-settings" },
    children: [
      {
        path: "view-log",
        name: "viewLog",
        component: () => import("@/views/agricultural-social-manage/monitoring-center/view-log/index"),
        meta: { title: "运行日志查看", icon: "agricultural-type-management" },
      },
      {
        path: "operate-log",
        name: "operateLog",
        component: () => import("@/views/agricultural-social-manage/monitoring-center/operate-log/index"),
        meta: { title: "操作日志查看", icon: "agricultural-type-management" },
      },
      {
        path: "server-monitoring",
        name: "serverMonitoring",
        component: () => import("@/views/agricultural-social-manage/monitoring-center/server-monitoring/index"),
        meta: { title: "服务器资源监测", icon: "agricultural-type-management" },
      },
    ]
  },
  {
    path: "/agrSocial-safe",
    component: Layout,
    redirect: "noRedirect",
    name: "agrSocialSafe",
    meta: { title: "安全中心", icon: "system-settings" },
    children: [
      {
        path: "abnormal-monitoring",
        name: "abnormalMonitoring",
        component: () => import("@/views/agricultural-social-manage/security-center/abnormal-monitoring/index"),
        meta: { title: "异常监测", icon: "agricultural-type-management" },
      },
      {
        path: "abnormal-record",
        name: "abnormalRecord",
        component: () => import("@/views/agricultural-social-manage/security-center/abnormal-record/index"),
        meta: { title: "异常记录", icon: "agricultural-type-management" },
      },
      {
        path: "notice-config",
        name: "noticeConfig",
        component: () => import("@/views/agricultural-social-manage/security-center/notice-config/index"),
        meta: { title: "通知配置", icon: "agricultural-type-management" },
      },
      {
        path: "rule-config",
        name: "ruleConfig",
        component: () => import("@/views/agricultural-social-manage/security-center/rule-config/index"),
        meta: { title: "规则配置", icon: "agricultural-type-management" },
      },
      {
        path: "event-record",
        name: "eventRecord",
        component: () => import("@/views/agricultural-social-manage/security-center/event-record/index"),
        meta: { title: "事件处理记录", icon: "agricultural-type-management" },
      },
    ]
  },
  {
    path: "/agrSocial-Data",
    component: Layout,
    redirect: "noRedirect",
    name: "agrSocialData",
    meta: { title: "数据中心", icon: "system-settings" },
    children: [
      {
        path: "business-statistics",
        name: "businessStatistics",
        component: () => import("@/views/agricultural-social-manage/data-center/business-statistics/index"),
        meta: { title: "业务统计", icon: "agricultural-type-management" },
      },
      {
        path: "data-backup",
        name: "dataBackup",
        component: () => import("@/views/agricultural-social-manage/data-center/data-backup/index"),
        meta: { title: "数据备份和维护", icon: "agricultural-type-management" },
      },
    ]
  },
  {
    path: "/agrSocial-Social",
    component: Layout,
    redirect: "noRedirect",
    name: "agrSocialSocial",
    meta: { title: "流程管理", icon: "system-settings" },
    children: [
      {
        path: "model-managements",
        name: "modelManagements",
        component: () => import("@/views/social-manage/process-management/model-management/index"),
        meta: { title: "模型管理", icon: "agricultural-type-management" },
      },
      {
        path: "arrange-managements",
        name: "arrangeManagements",
        // component: () => import("@/views/social-manage/process-management/model-management/index"),
        component: () => import("@/views/social-manage/process-management/arrange-management/index"),
        meta: { title: "部署管理", icon: "agricultural-type-management" },
      },
    ]
  },
  {
    path: "/agrSocial-system-manage",
    component: Layout,
    redirect: "noRedirect",
    name: "agrSocialSystemManage",
    meta: { title: "系统管理", icon: "system-settings" },
    children: [
      {
        path: "user-manages",
        name: "accountManages",
        component: () => import("@/views/agricultural-social-manage/system-manage/user-manage/index"),
        meta: { title: "用户管理", icon: "agricultural-type-management" },
      },
      {
        path: "role-manages",
        name: "roleManages",
        component: () => import("@/views/agricultural-social-manage/system-manage/role-manage/index"),
        meta: { title: "角色管理", icon: "agricultural-type-management" },
      },
    ]
  },
]

export default agriculturalSocialRouter;
